﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Hxsoft.AppV1.Admin.Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
	<title>登录</title>
	<style type="text/css">
	html, body
	{
		margin:0px;
		padding:0px;
		border:0px;
		background-color: #305A84;
		filter:progid:DXImageTransform.Microsoft.gradient(startColorStr=#305A84,endColorStr=#4279B1);
		height:100%;
	}
	
	.LoginBox
	{
		width:100%;
	}
	</style>
	<script language="javascript" type="text/javascript">
	<!--
	function InitSetFocus()
	{
		var tbUserName = document.getElementById("<%# UserNameClientID %>");
		if(tbUserName)
		{
			tbUserName.focus();
			tbUserName.select();
		}
	}
	-->
	</script>
</head>
<body>
	<form id="form1" runat="server">
		<asp:ScriptManager ID="ScriptManager1" runat="server">
			</asp:ScriptManager>
		<div id="MainBody" runat="server">
			<script language="javascript" type="text/javascript">
			<!--
			document.body.onload = InitSetFocus;
			-->
			</script>
			<br />
			<br />
			<br />
			<br />
			<br />
			<br />
			<asp:Login ID="Login1" CssClass="LoginBox" DestinationPageUrl="~/Main.aspx" 
                runat="server" OnLoginError="Login1_LoginError" 
                OnAuthenticate="Login1_Authenticate" onloggedin="Login1_LoggedIn">
				<LayoutTemplate>
					<asp:UpdatePanel ID="UpdatePanel1" runat="server">
						<Triggers>
							<asp:AsyncPostBackTrigger ControlID="Login1" EventName="LoggingIn" />
						</Triggers>
					</asp:UpdatePanel>
			<table align="center" border="0" cellpadding="0" cellspacing="0">
				<tr>
					<td>
						<img src="I/Logon/Logon_r2_c2.jpg" width="9" height="9" /></td>
					<td background="I/Logon/Logon_r2_c3.jpg">
						<img src="I/Logon/Logon_r2_c3.jpg" width="2" height="9" /></td>
					<td>
						<img src="I/Logon/Logon_r2_c9.jpg" width="10" height="9" /></td>
				</tr>
				<tr>
					<td>
						<img src="I/Logon/Logon_r3_c2.jpg" width="9" height="182" /></td>
					<td>
						<img src="I/Logon/Logon_r3_c3.jpg" width="402" height="182" /></td>
					<td>
						<img src="I/Logon/Logon_r3_c9.jpg" width="10" height="182" /></td>
				</tr>
				<tr>
					<td>
						<img src="I/Logon/Logon_r4_c2.jpg" width="9" height="59" /></td>
					<td background="I/Logon/Logon_r4_c3.jpg">
						<table width="100%" border="0" cellpadding="0" cellspacing="0">
							<tr>
								<td width="124">
									<img src="I/Logon/Logon_r4_c5.jpg" width="124" height="59" /></td>
								<td align="right">
									<table border="0" width="100%" cellpadding="0" cellspacing="0">
										<tr>
											<td align="left">
												用户名：<asp:TextBox ID="UserName" runat="server" Columns="20"></asp:TextBox>
												<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="UserName"
													Display="None" ErrorMessage="请输入用户名。"></asp:RequiredFieldValidator></td>
										</tr>
										<tr>
											<td align="left">
												密　码：<asp:TextBox ID="Password" runat="server" Columns="20" TextMode="Password"></asp:TextBox>
												<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="Password"
													Display="None" ErrorMessage="请输入密码。"></asp:RequiredFieldValidator></td>
										</tr>
										<tr>
											<td align="left">
												验证码：<asp:TextBox ID="TbCheckCode" runat="server" Columns="6"></asp:TextBox>
												<Hxctr:CheckCodeHelper id="CheckCode1" runat="server" EnableViewState="false">
												</Hxctr:CheckCodeHelper>
												<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TbCheckCode" Display="None" ErrorMessage="请输入验证码。"></asp:RequiredFieldValidator>
												<asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="输入了错误的验证码。" Display="None" OnServerValidate="CustomValidator1_ServerValidate">输入了错误的验证码。</asp:CustomValidator>
											</td>
										</tr>
									</table>
								</td>
								<td width="66" align="center">
									<asp:ImageButton ID="IbtLogon" runat="server" Height="41px" CommandName="Login" ImageUrl="I/Logon/Logon_r5_c7.jpg"
										Width="54px" OnClick="IbtLogon_Click" /></td>
							</tr>
						</table>
					</td>
					<td>
						<img src="I/Logon/Logon_r4_c9.jpg" width="10" height="59" /></td>
				</tr>
				<tr>
					<td>
						<img src="I/Logon/Logon_r6_c2.jpg" width="9" height="9" /></td>
					<td background="I/Logon/Logon_r6_c3.jpg">
						<img src="I/Logon/Logon_r6_c3.jpg" width="3" height="9" /></td>
					<td>
						<img src="I/Logon/Logon_r6_c9.jpg" width="10" height="9" /></td>
				</tr>
			</table>
			<asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True" ShowSummary="False" />
				</LayoutTemplate>
			</asp:Login>
			<Hxctr:MessageBox ID="MessageBox1" runat="server" />
			<Hxctr:UpdateProgress ID="UpdateProgress1" runat="server" />
		</div>
		
	</form>
</body>
</html>